added small test cases.