# -*- mode: cperl;-*-
-use Test::More tests => 6;
+use Test::More tests => 8;
use warnings;
use strict;
ok($mech->content() =~ qr/^From /m,
'Starts with a From appropriately');
+$mech->get_ok('http://localhost:'.$port.'/?bug=1;mboxmaint=yes',
+ 'Page received ok');
+print STDERR $mech->content();
+ok($mech->content() !~ qr/[\x01\x02\x03\x05\x06\x07]/i,
+ 'No unescaped states');
+
+
# Other tests for bugs in the page should be added here eventually