Smarter `head` and imports of `junit`