Updated Singleton test to compare class instances.
Updated SingletonPattern with static inner class SingletonHolder to make
thread-safe and lazy construction without synchronization or lock.