complete example tests
added singleton example