building groovy version(more automated) tests.