Push function is working with test cases.