Adding some more tests.
Adding Error handling in prelude.