servlet3-cass: implement test type 5 + refactor