removed grok dependency
added tests