fixed gallery page functional tests and routes