test the nil case