Updated dynamic pages and revised rspec to resolve error where it was not originally defined.