fixed bugs on linux & file parsing, updated test case