Working darktest and lighttest