The ruby version of the kpsule test