fix unittest osgi event