Added test program, minor fixes in Cultivation