remove testFunctionTest from queryTests
add max and min test functions
add average function