add weights verification to testing