Add in tests for remaining api functions.