test: loaders: Add Write cases for BMP.

Signed-off-by: Cyril Hrubis <metan@ucw.cz>
loaders: BMP: Fix leak.

The Load() function was missing fclose().

Signed-off-by: Cyril Hrubis <metan@ucw.cz>