Add tests and argument checks for the base parser