Fixing errors in unit tests for PHP 5.4+ and the way array keys for non-existant keys are handled.