update to the tests and passing user objects instead of ids