Tests fixed for rails3