Using Stack API for two test cases