Refactoring package test (test.parser)