added more test coverage, hit a snag with releasing locks.
fixed broken test case.