#21 Fixed access to admin's pages

Fixed access to admin's pages.
Added test.
In last PR i moved admin from role model, so when Paweł merge it, i'll change this test and variable