test for programs in leetcode