added more unit tests, switched to using a regex to validate title