 
         it 'has updated the title', (done) ->
           @a = browser.query '#header h2 a'
-          $(@a).text().should.equal 'Some lovely string'
+          $(@a).text().should.equal randomname
           done()
 
+      context 'when I go back home', ->
+        before (done) ->
+          browser.visit "#{url}/", ->
+            browser.wait done
+
+        it 'should display the home page', ->
+          browser.location.href.should.match /\/$/
+
+        it 'should show the new dataset new name', ->
+          browser.text().should.include randomname
+
+

login_url = "#{url}/login"

describe 'Dataset', ->
  browser = new Browser()

  before (done) ->


      context 'when I fill in the input box and press enter', ->
        before (done) ->
          browser.fill '#header h2 input', randomname, ->
            browser.evaluate """
              var e = jQuery.Event("keypress")
              e.which = 13
