Small simplification.
Tests for addonAPI.
Fixed a typo.
Inline variable.
Added tests for activitiesAPI-functions.