Generate title number

This is to conform to business rules 2 and 3 for the casework frontend:

#BRL 2
#Each title needs to be unique
#BRL3
#Each title must have a prefix of TEST immediately followed by numbers in the
# range '1' to '9999' ignoring preceding zeros.