add unit tests for the @singleton decorator
add unit tests for the @singleton decorator


Former-commit-id: 5a24d42d221759e708f1c258171784caab8ac8ad
gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine