Changing api to test/assert.