Added tests and fixed issue with define method
Removed useless dependency
Warning in Readme