Wrote tests and started debugging