fix: change Schema into mongoose.Schema, implement integration test for ...

...api closes #3