corrected module name fot tests
added port direction check on read
test: fix port-reading test after fa65927777