Altered the test to only set the $KCODE variable in 1.8.7