expect test for a callback function. i feel smarter