[gh-21] - Added test for nil check