Move test script to tests directory