fixed test to work with gradle.