fixed all the API tests
updated markup for the frontend tests
some fixes to frontend and admin markup