extending User tests to check for expected error code