Added unit tests for minnal api module