Added full test suite for the API so far