Fixed test
beforeStop on Main should do internal stop logic in independet method, as end users most likely wont call super when they override the method to do their custom logic.