testing for cap