updated reader and added two testcases

updated reader and added two testcases