Made adjustments for win32
Added seek test case