Added unit test with example 2.