rename unit test files
fixes in test sensor
code formatting
move stream implementations up
move finctions from Main to device