Fix memory leak in OSGi Runtime and add Bundle.update() testing