Add test scripts: Latent factor