fixed safely functions best practices test