Add tests scripts for validate API