add api test; needs cleanup