Moved portions of the test script to user_drivers/test_common_code.sh

Just call the function after you sourced it.