Helper for automated testing