New functional test and modification of base.html