Added test script for cross validation.