Implemented "invalid code" test