added proper injection to login stub test