Fix a test case in project test #2280

The test was asserting a RuntimeError for unregistered
user. Now, it tests it the right way.