added tests for weight and pieces, sanity check