test: group success and failure cases