use a proper callback in the test