Added licence, moved tests to separate directory