tests for nil