Test that validateToken returns a 404 JSON formated error.