Turn debug ON, Add checks to tests