simplified check if lighting is required and fixed broken test