Test automation identity

Added test for checking that user cannot be created with user of already existing user with same username. Also did some refactoring
I think the idea is to make the exception specific to this case so it can be caught - however I would recommend moving all the nuts and bolts to the steps - possibly a new method - and making the test a little higher level than at present.