adds test for an API