Finished unit tests for all current API functions.