Added tests. I think the important happy-case test cases are written. Will add more tests in bad.cl later. Probably tomorrow morning or late tonight.