fixed bug in self_type test.