implement gateway test [#3]