Don't save values into "user" and "returned_user" if you just use it once in assertEquals. It's better to just put them directly into the assertEquals method.