Add tests for debug