Tests for public API