add tests for rest of util

add tests to get complete coverage of qs.util