[Generator] move enum constants and getter from Peer to TableMap
[Tests] fix tests broken with contants move from Peer to TableMap