automate moztrap case 2744

Pull request for Issue #75.

Test passes, but I think code requires some beautification.
This test takes a lot of time to run, but I don't see any possibilities to shorten run time of it.