Update test for admin and refactor html for partials