Tests for the new API

Just the working tests.