fix tests to write tmp file in test dir; pr feedback for base quality conversion;