Relax self link != topic test and fix the expected codes for bad requests.