refactor tests
function can be evaluated