null pointer issue fixed in component test