Made the test user have view-only privileges
Fixed some bugs in the classes for dealing with issue #15
minor refactoring + added method documentation + added method for cleaning the dump directory #15