add test cases for cops and modes