We should probably check that the function with the expects in it actually gets called.