Small refactorings on test helper
Indenting json responses to improve legibility
Improving constant lookup on test files