Registered the parser in the factory for test classes

Registered the parser in the factory for test classes