implemented User, added output in case of exceptions in unit tests