Added tests for debugging