fixed bugs in single-precision tests