Adds unit tests for libbtrfs.

They pass too.