Test undefined kernel method raises exception.