Add unittests for mw_api

We want to have unittests for the mw_api module.

Add test module testing the constructors of both API classes.