in reply to Browser based web app testing

Have you taken a look at Test::WWW::Mechanize? It does everything that WWW::Mechanize does, but wraps it up in a unit test framework.