Add test script and update requirements.txt