written some unit tests for instrumentation

fixed the code so that it passes them