Add locked and closed tests