Added aggregator test, fixed traited_query bug and started mongodb export script