improves test with null object test