check if pathname is test