fixed and added new webapp tests