@damned fixed test for 'exports' so can work in-browser as well as in node