Improves the feedback in case of valid code but of unsupported algorithm or transport. Added some test cases.