Made the required changes in the tests to execute these conditions.