Added test case to assert consistent output