fix typespec tests
fix warnings