added test to simulate required scenario