tested the xUn family of functions, and fixed some minor issues with undeclared variables referenced in error functions