move utils functions into a separate file
add unit tests for utils
rename test runner for onload tests
move config functions into a separate file
add unit tests for config