Fix compiler warnings.
Add some tests that use Bitcoin J