Removed bit deli badge
Added tests for #18, and fixes for bugs that the tests revealed