moved phpunit config to root
Added functional tests for events api