FLOE-207: Refactored unit tests and fixed bugs

Refactored and expanded bindDialog unit tests using the IoCTesting framework. Also fixed some bugs exposed by the tests.