added test to check whether user will see homepage or not.