fixed tests, added more tests, fixed some issues discovered during testing
involving C code causing the interpreter to crash without any warning or
error message