Add several test cases, adopt build to be able to run those,
some changes on icon creation, (use mimetype, instead of minetype)