Refactoring of LegoNXTTest

* removed unused variables
* removed unused statements
* refactoring of variable names