Added tests to scripts.