add tests and fixes for coredumps when bypassing

prototype checks