fixed typo in URL to rails tutorial
refactored tests