Adding tests for API, compressed migrations, changed some models