module tests: renamed fail tests to *.fail
removed unused variables
fixed signed/unsigned comparison