Moving testes source and adding debug macros.