null violation in tests