fixed a few minor test bugs