Is this really testing the right thing? Should the expect() be moved inside of the `then`?