Fix reserve test on windows

Windows doesn't handle deleting an opened file...
Add tests for DB type conversion