Fixed tests. Added first version of springsecurity tests.