Fix a bug of OSTree and add a JUnit test.