not sure if this is still a problem but one thing i did notice was the docs use the "function" keyword to build their components. It could be that the directive needs to be above the export statement. So try doing:
export default function Test(){ return null }