unit_tests.sh has a lot of duplicated statements.
This commits introduces run_test function to clarify the differences.
selenium_tests.sh is also updated to clarify which positional
arguments are used. Direct usage of $1, $2 is not easy to understand.
Change-Id: Ie13f0a804968d548b3c13b0d87daa745dd2ad040