tests: Convert test for #! support to Autotest framework.