Added Gate tests