added unit tests for user nickname = nil bug