lightbox helper and test case