tests for the new api