Testing work

significant changes to the testing framework and introduction of acceptance testing with beaker