Working asynchronous qunit test that checks if a function is being called, not just the state after