removed obsolete json conversion
removed unused imports
deleted unused tests
sample test file for main.go