Fix test cases. Fix contacts application + tests.