Tests for scoped singleton class