Link with Spark more efficiently in shark-tests too