Use assertSame instead of assertEquals to test boolean attributes
Fix return vlaue docs for anonymousIp method