unit_test: Add a unit test script to automate testing