modified test cases for lib