refactor to evalBoolFactory service the function handling boolean expressions
add unit tests for evalBoolFactory service.
correct evalBoolFactory service based on unit tests