`kernel.{prototype,behaviors,prototypes,prototypes(...,true)}` tests.
Refactor `kernel.prototypes` slightly to remove duplicated code.