Change method for search error message, change expected exception, change return type of message in class User