passes all simple gate tests