Move two tests specific to the request vars panel in their module.
Fix PEP 8 violations.