add support for integer node weights
rewrite msrc_weak tester