exposing collections to the page context and adding some tests