add test routines for BOW extraction