using vars handler for testing purposes

as suggested in go-nuts forum