Can now load configuration via hash
Tidied up existing tests