Fixes #281: Unit test fails for model User