Fixed bug in dynamic title generation and test