gradle build

add ignoreFailures flag
replace junit 3 assert with junit 4 assert