adjusted, fixed and cleaned up old tests to use less memory and not fail on PHP 5.3 engine/reflection bugs, refs #1065