Additional tidy up and rspec tests for the license and .bin tasks