Demos: Make casper tests check for JS errors and fail if any are found
Pagecontainer: Add unit test for load method when no options are passed