added isComplete, changed test accordingly