Added tests and scripts.