Playing around with tests

@Achal-Aggarwal - would you be able to look at why this fails in PHP5.5 - I get a resource is needed but not really understanding how this test works at a quick glance (this is one of the ones I also need to fix to get the tests running in the CMS on php5.5 as well)

Sorry this is horrifically lazy to ask you. But as your on the GSOC program..... :P