fixing test so it can be run standalone