Added test for use cases 2 and 3.