Add testing scripts for both CLI and web-server modes