Fixes #281: Unit test fails for model User

This is the simplest change that fixes the test.