Add some unit tests for bug 9193