minor whitespace cleanup
complete basic tests for link extraction