fix tests by making things on "this" global instead
Merge pull request #14 from twistedvisions/fix-tests

fix tests by making things on "this" global instead