Clarify test task implementation, ensure opts is defined