working sample rails app with tests