Update unit tests according to API
Add phpunit to dev dependencies
Update functional test to use millisecond precision
Update changelog