fix(static): use content type from file
fix(tests): fix count tests

nose does not guarantee the order of execution.
merged two methods.