Fixes minor bug in test