Fleshing out JS compression task tests

Also added support for config.public (defaults to using config.cwd)