Removes unused imports and methods from parser module
Adds tests spec for Parser