Bug 845569 - Land tests for various bugs. r=terrence