Cleaned up parser test with setup method