added test for setting nil