added test functionality to the main methode of sourcebost