Fixed test annotations for gradle.