Made use of beforeEach to tidy up doclet tests, making them more independent
FIX: in setLongname. Escaped a dot '.' -> '\.' in replace regex.