Add test for anonymous function exports