Changed from name to this.name in setName(), now it is set correctly.
Changed a part of testcase to return some more information if a test
fails.