add tests, move mime to class constant