reorganized tests, started writing a test for defAPI