I felt that tests do not need to be as pretty as the real code, as long as they work, so I've just edited a working solution I found here http://japhr.blogspot.sk/2013/07/mocking-httprequest-dumb-way-in-dart.html 
However, if you think this is unsatisfactory, I can think of a better way to realize these tests..