Update test case to remove usage of deprecated express apis