fixed #66, tests added, posix devices emulation feature added