In relation to #1225.
Current situation: In case the mruby-print GEM isn't added to the build_config the test environment will crash due to the lack of print.
This patch adds a fallback print method to the testing environment.
Implement fallback print method for testing environment in case mruby…
…-print GEM wasn't included.
Move declaration of kernel to the beginning of the method