fix hasSnippets method on Tag model
add unit tests for User model