ticket:3 implemented requirements and fixed tests (admin doesn't path trough middleware)