Added tests
Added doc