added tests for searching hostname field & flake8 fixes
added name to api & migration file