Fixed bugs with group functionality.
Added quick unit tests for data_store.