Get tests working with openjdk