dont hardcode SID/sig in unit test
minor memory cleanup fix