API Unit Test