Adding Tests with doctests

And requirements :)