fixed #81 -  Errors while running tests