added unit tests for bag_owords, readability