Refactoring: all test stuff goes to 'js/testing'.
More robust error reporting in Pack and Parser.