Enforce kernels being odd (otherwise x_size and y_size doesn't match actual kernel dimensions), and adjusted tests.