made running tests optional (to allow 'require') in parser.