BUG-FIXES:
----------

TEST_MODE was used instead of IS_TEST_MODE

files other than main.c have not recognized test mode even if
IS_TEST_MODE was defined (in main.c)

changed direct call to (production method) machineS_turnToPos(...) in
testAlgo (student.c) to getMachine()->machine_turntopos (makes testAlgo
runnable in test mode)



NEW:
----

implemented test_XYZ stubs for all methods in struct Machine
(RoboFactory)

implemented mini version of the
call-state-method-then-wait-then-call-state-method-etc loop in the test
mode main method in main.c



REFACTORING:
------------

IS_TEST_MODE is defined (or not defined) in constants.h instead of
main.c as it is needed in many other files which mostly already include
constants.h (at least including constants.h is better than including
main.c in each file where IS_TEST_MODE is used)

declarations of productionGetLpsData() and testGetLpsData() are moved
from from RoboFactory.h (kind of "public" methods) to RoboFactory.c
(kind of "private" methods)

all testXYZ and productionXYZ methods are renamed to test_XYZ and
production_XYZ

main.c is devided in three parts: "needed by test and production mode",
"only needed by test mode", "only needed by production mode"