Added jar task to build gradle file and modified the test file