Add unit test for can() fix