Tests for parseCode function