fixed webspace dumping
added test cases