Hotfix weight table, writeback, chunking test

The ".text" suffix was originally added in another function, but I feel it should be refactored. So I made this change.