Jhbate/tests

this PR is largely around adding further tests to the chrome uploader. Many of the tests are wrappers at this stage but provide the framework to extend as we push towards the beta release.