Fixed bug with parser accepting predicate names containing spaces
Updated tests