add dynamic title and tests