fixes a couple minor issues with testing