frontend: testcase with real ajax
frontend: (remove dead code)