unit tests
Catch exceptions for invalid user