fix a small bug and added a junit test class for the BestEffortService