test with a random string (should integrate scalacheck... but I'm not doing that today)