More tests for API.  Ran into several bugs, currently stuck on delete record bug