Add tests for default mime-types

The default mime-types text/plain and application/octet-stream miss respective
tests. This is to test the different behavior of mimetype() and magic().