Bugfix, factor out ws data checks, print file location on failure

was asserting that the ws data hadn't changed twice rather than 1 assert
for data, 1 for meta