refactoring htmlUnit tests add httpunit tests