Move Fn tests to test/fn.js. Adds _BV/bitValue