fixing servlet/context paths problems in tests and fixing issue #41