remove java special casing for test