More rigorous testing of build() and createKernel*()
Make .toThrow disqualify exceptions without meaningful error message