Add unit test for utils.singleton (closes #3)