added test case for input reader