Fix IllegalArgumentException in Unit Test

Reported by Gradle but not by Eclipse