rewrote singleton test because it breaks in travis env