fixes #81, updated bagging tests for more coverage