added tests for attributes keeping. closes #194
group_by factor w NA. closes #183