1

Consensus number and consensus hierarchy are defined in the classic paper "Wait-Free Synchronization" by Maurice Herlihy, 1991.
Note the keyword: wait-free.
Since you did not give the algorithms for test&set using read/write registers only, I guess that they are not wait-free. (They may be lock...