tests for the evaluate function