enhance patmat test case