Add unit tests for salt api service