made little refactory and created new test to check mimetype css