Test harness for bmp_lib.js

If debugging errors, start with the first reported error, subsequent tests often rely on earlier ones.