Added docstring to tests and fixed ean in detail view