[ update, fix ] flash invalid subsector address computation, better unit test