added a test for a more complicated singleton require pattern