If you want the same style for visited and normal links use #test a
instead of #test a:link
.
Using just a
will add the styles for all states for the link(unless specified elsewhere example: a:hover, a:visited)
In you're case you don't have a style for the :visited state and since you only have an a:link style rule it has nothing to fallback on.