calculate testing kernel directly