Add tests for 'lmi storage' and 'lmi mount'.

Also fix discovered errors.
Fixed printing of table items to pipe.