added user_id to tag; and unit tests!