Update testapp to rails 4