Construct the bitboard test data from the new common data sets

Also cleanup the code, improve quality, etc.