Add tests for compile_string and compile_quoted, closes #1206