Fixed unit tests with PHP5.3.

Fixed error : "PHP Fatal error:  Using $this when not in object context" with PHP5.3