added mockery for testing purposes
fixed bugs in access facade, more tests, more robust tests