add tests for kray util