improved LightmareBean for test cases