Add rule for lib tests