table_controls.html: streamline test code