adding lights and correcting some api in test case