Cleanup
Fixed tests for PHP < 5.4
Merge pull request #66 from sergeyklay/fix-unittest

Fixed tests for PHP < 5.4