added some more tests for uncovered functions