Added some waits to the casperjs tests.