Fix path related test setup issue
Add tests for lib/runtime.sh