Add tests

This PR creates PHPUnit test configuration. It's also initial versions of test files.