VID-2127 move pageCategories into its own member variable
VID-2127 fix screenplay bug
VID-2127 add some unit test scaffolding