tests: Rewrite attributes tests to use Autotest.