fixed some tests
added test_all.R
added waitForJobs