Added bare-minimum self-test for CPP, CPP11, JAVA, RUBY