function test case for express app