set stringsAsFactors in frequencies() to FALSE and updated tests.