added better test function + corrected specification