fixed memory-leaks in unit-test
implemented scope_equals()-function