* Adapt bugs to work with the newer testing framework
- Added unit tests for TW-1254. Signed-off-by: Paul Beckingham <paul@beckingham.net>