Don't flush LIBRARY (or BINARY) on TEST

The behind this is that tests need to know the target that they're
testing, regardless if it's a library or a binary target.