fixes beco driver and adds exceptions
small refactoring to tests