Unit tests

Added some unit tests for code coverage and a licence file