fixed test for nil