fixed minor bugs in tests
fixed bugs in parser when handling literals