switchUrl needs to be fixed in explain tests, the url provided by the switch is used.
Fix common JSON handling. Add tests for profiles, meta texts, sampletexts.