working example test cases