add test case for isCapped()