Tests for program API