Fixed tests scripts.