added additional tests for type extension and fixes