fix recording of B register.
add test_*.a65 to dependencies when compiling tests.