added stdClass() objects as per strict standards to allow the test to pass on travis