make the test function look like the spec example