initial rails setup with some preparation for testing