add tests for swagger