add more unit tests for swagger