test cases successfully working