[TEST] fix gateway test

make it work with changes on advanced.jade