update params to latest GA API
added unit tests