`$test` should be extension or type