added test files(json & xml)
tests are changed and refactored