Removed unused variables for unit tests.
Fixed compiler errors.