Bug 881272 - 3/4: Backend changes.
Bug 881272 - 4/4: test cases.