Fix parser tests

@pozdnyakov Misha, could you check it plz.
I removed main.cpp, since most of the parser code is tested by tests.cpp