Add test for keystore injection.