Refactor and only include accept button for failing tests