Updated rails to 3.2.11 and refactored integration tests