Add a test for backend JSON error context
Remove unneeded and accidentally committed methods