Added test coverage for devise