test for capacity constraint