added testing
added log