edited test case evaluation function;