Added a test for when creating a singleton defined by an interface.