added unit tests for filesystem line and fixed found bugs