fixed bug in test cases
changed some of the webcalls etc.