tests: test through the public API