Unit tests for not set and singleton class

Added unit tests for uninitialized (not set) variables (which return
nil, and therefore are not set to the typesafe class) and to prove that
the instance variables are not being set on the singleton class.