fixed problems with opportunity test