Refactoring: now test JSON data has its own place; fixed missing encoding when printing Unicode strings